from django.conf.urls import url
from django.contrib.auth.decorators import login_required
from automatic.webinterface import views

urlpatterns = [
    url(r'list/$',  login_required(views.WebinterfaceListIndex.as_view()), name='interfacelist'),
    url(r'file_down/(?P<file_name>.+)$', views.file_down, name='filedown'),
    url(r'upload_file/$', views.upload_file, name='uploadfile'),
    url(r'run/$', views.run_interface, name='runinterface'),
    url(r'interfacehistory/$', views.get_interface_history, name='getinterfacehistory'),
]